package cate.common.table.activity.weekcard.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.weekcard.row.WeekCardRow;

import java.util.List;
import java.util.stream.Collectors;

public class WeekCardSheet extends ESheet<WeekCardRow> {
    @Override
    public String getSheetName() {
        return "周卡";
    }

    public List<WeekCardRow> getRowsByFuncAndConfigId(int funcId, int configId) {
        return list.stream().filter(e -> e.funcId == funcId && e.configId == configId).collect(Collectors.toList());
    }
}
